<%@page import="bean.User"%>
<%@page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style/style.css">
<title><%= request.getAttribute("title") %></title>
</head>
<body>
<div id = "mutterBox">
		<div id="showBox">

			<%
				if (!request.getRequestURI().contains("login")) {
			%>
			<table class="tableShowBox">
				<tr>
					<%
						if (((bean.User) session.getAttribute("loginUser")).getIsAdmin()) {
					%>
					<td>Mein Portfolio</td>
					<td>offene Auftr&auml;ge</td>
					<td><a href="admin.jsp">Administration</a></td>
					<%
						} 
						else {
					%>
					<td><a href="myPortfolio.jsp">Mein Portfolio</a></td>
					<td><a href="offeneAuftraege.jsp">offene Auftr&auml;ge</a></td>
					<td>Administration</td>
					<%
						}
					%>
					<td><form action="logout.do" method="post">
					<%=((bean.User) session.getAttribute("loginUser")).getBenutzername()%>
					<input type="submit" name="logout" value="Logout"></form>
					</td>
			</table>
		</div>
		<% } %>
		<div id = "messageBox"><%=(session.getAttribute("applicationMessage") != null ? session.getAttribute("applicationMessage") : "") %></div>
<% session.setAttribute("applicationMessage", null); %>
<div id = "inhaltBox">
<!-- <%=request.getRequestURI() %> --><br>